<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shiv 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
    <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

</head>
<body>
    <div class="container">
        <form action="/ormtest/update_book/{{ book.id }}" method="post" role="form">
            <div class="row">
                <div class="col-lg-3 col-lg-offset-3">
                    ID<input type="text" class="form-control" value='{{ book.id }}' disabled="disabled">
                </div>
            </div>
            <div class="row">
                <div class="col-lg-3 col-lg-offset-3">
                    书名<input type="text" class="form-control" value='{{ book.title }}' disabled="disabled">
                </div>
            </div>
            <div class="row">
                <div class="col-lg-3 col-lg-offset-3">
                    出版商<input type="text" name="pub" class="form-control" value='{{ book.pub }}'>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-3 col-lg-offset-3">
                    价格<input type="text" class="form-control" value='{{ book.price }}'>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-3 col-lg-offset-3">
                    进货价<input type="text" class="form-control" value='{{ book.market_price }}'>
                </div>
            </div>
            <div class="row">
                <button type="submit" value="更新" class="btn btn-default btn-lg col-lg-offset-4">提交</button>
            </div>
        </form>

    </div>
    <!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
    <script src="https://code.jquery.com/jquery.js"></script>
    <!-- 包括所有已编译的插件 -->
    <script src="js/bootstrap.min.js"></script>
</body>
</html>